package com.coda.app.mapper;

import com.coda.appVo.graph.GraphVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GraphMapper {
    /**
     * 根据id查询图片
     * @param id
     * @return
     */
    @Select("select name,url from graph_info where item_id = #{id} and item_type = #{itemType}")
    List<GraphVo> getGraph(@Param("id") Long id,@Param("itemType") Integer itemType);
}
